﻿@model IEnumerable<Vcare.Models.Authority>

@{
    ViewBag.Title = "Index";
}
<style type="text/css">
td
{
font-family: 'Trebuchet MS';
font-size: 14px;
}
th
{
font-family: 'Arial Narrow';
font-size: 16px;
color:#C0C0C0;
}
</style>
<h2>Authorities</h2>
<div class="spacer"></div>
<a href="@Url.Action("Create")">
<img src="../../Images/add.png" />
</a>
<div class="spacer"></div>
<table class="listtable contactstable" cellspacing="0" cellpadding="0">
    <tr>
        <th class="tableheader clickcolumn">
            @Html.DisplayNameFor(model => model.Description)
        </th>
        <th class="tableheader clickcolumn">
            @Html.DisplayNameFor(model => model.Level)
        </th>
        <th class="tableheader clickcolumn"></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Level)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.AuthorityID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.AuthorityID })
        </td>
    </tr>
}
</table>
<div class="spacer"></div>
<div class="spacer"></div>